package com.lansea.wms.model;

import com.lansea.wms.entity.ValidClass;
import com.lansea.wms.model.base.BaseUserBetweenTime;
import com.lansea.wms.util.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.Min;
import java.util.Date;
@Data
@Repository
public class StockEntry extends BaseUserBetweenTime {


    @Min(value = 1, message = "id 非法", groups = {ValidClass.EditForm.class})
    private Integer id;

    private String number;
    @ApiModelProperty("订单号长度必须为")
    private String orderNumber;

    @Min(value = 1, message = "请选择分类")
    private Integer categoryId;

    @Min(value = 1, message = "请选择公司")
    private Integer companyId;

    private Integer status;
    private Integer type;
    private String remark;

    private Integer approveUid;

    @DateTimeFormat(pattern = DateUtil.DATE_TIME_FORMAT)
    private Date approveTime;

    private String approveUserName;

    private String rejectRemark;

    private Integer deliveryId;

    private Integer moveCount;

    private String categoryName;
    private String companyName;
    private String companyCode;



}
